package org.shock.ss.sms.bean.system;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 继承自User 用于存放session
 * 
 * @author jile
 * 
 */
public class UserInfor extends User implements Serializable {
	private static final long serialVersionUID = -1L;
	private String bmmc;// 部门名称
	private String modids;// 拥有的菜单模块
	private String rightids;// 拥有的权限
	private List<String> rolecodes = new ArrayList<String>();
	private List<String> rightcodes = new ArrayList<String>();
	private String portals;// 桌面portals
	private Integer bmlev;

	public UserInfor() {
		super();
	}

	public String getBmmc() {
		return bmmc;
	}

	public void setBmmc(String bmmc) {
		this.bmmc = bmmc;
	}

	public String getModids() {
		return modids;
	}

	public void setModids(String modids) {
		this.modids = modids;
	}

	public String getRightids() {
		return rightids;
	}

	public void setRightids(String rightids) {
		this.rightids = rightids;
	}

	public List<String> getRightcodes() {
		return rightcodes;
	}

	public void setRightcodes(List<String> rightcodes) {
		this.rightcodes = rightcodes;
	}

	public String getPortals() {
		return portals;
	}

	public void setPortals(String portals) {
		this.portals = portals;
	}

	/**
	 * @return the rolecodes
	 */
	public List<String> getRolecodes() {
		return rolecodes;
	}

	/**
	 * @param rolecodes
	 *            the rolecodes to set
	 */
	public void setRolecodes(List<String> rolecodes) {
		this.rolecodes = rolecodes;
	}

	public Integer getBmlev() {
		return bmlev;
	}

	public void setBmlev(Integer bmlev) {
		this.bmlev = bmlev;
	}

//	public org.ralasafe.user.User toRalaUser() {
//		org.ralasafe.user.User user = new org.ralasafe.user.User();
//		user.setId(getId());
//		user.set("loginName", getYgzh());
//		user.set("name", getYgxm());
//		user.set("deptName", getBmmc());
//		user.set("password", getYgmm());
//		user.set("isManager", getIsadmin());
//		user.set("deptId", getBmid());
//		user.set("deptLevel", getBmlev());
//		return user;
//	}
}
